#include <stdio.h>
#include <string.h>
#include <windows.h>
#include <stdlib.h>
int main()
{
    //多个字符中间移动
    char arr1[] = "welcome to bit!!!";//不加大括号用字面量初始化简洁
    char arr2[] = "*****************";
    int left = 0;
    int right = strlen(arr1) - 1;//包含头文件string
    while (left <= right)
    {
        arr2[left] = arr1[left];
        arr2[right] = arr1[right];
        printf("%s\n", arr2);
        Sleep (1000);//包含头文件Windows 以毫秒为单位 减缓速度
        system ("cls");//清理屏幕信息
        left++;
        right--;
    }
    return 0;
}